/ Macwelt 2
/ Macwelt DVD 2.cdr / System / System-Utilities / macosx / Change Startup Disk 1.0.2 / Change Startup Disk--source ![]() | < prev | next > |
MacBinary | 2002-04-04 | 2.6 KB | [TEXT/ToyS] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
1% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, Thu Apr 4 09:55:13 2002, modified Thu Apr 4 09:55:13 2002, creator 'ToyS', type ASCII, 1814 bytes "Change Startup Disk--source" , at 0x796 568 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | dearkID | deark: macbinary | default | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [ToyS] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1b 43 68 61 6e 67 65 | 20 53 74 61 72 74 75 70 |..Change| Startup|
|00000010| 20 44 69 73 6b 2d 2d 73 | 6f 75 72 63 65 00 00 00 | Disk--s|ource...|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 54 6f 79 | 53 00 00 b1 e0 b1 e0 00 |.TEXTToy|S.......|
|00000050| 00 00 00 00 00 07 16 00 | 00 02 38 b8 d2 19 d1 b8 |........|..8.....|
|00000060| d2 19 d1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 dc dc 00 00 |........|........|
|00000080| 64 6f 20 73 68 65 6c 6c | 20 73 63 72 69 70 74 20 |do shell| script |
|00000090| 22 2f 75 73 72 2f 73 62 | 69 6e 2f 62 6c 65 73 73 |"/usr/sb|in/bless|
|000000a0| 20 2d 69 6e 66 6f 20 2f | 20 7c 20 67 72 65 70 20 | -info /| | grep |
|000000b0| 2d 63 20 27 42 6c 65 73 | 73 65 64 20 53 79 73 74 |-c 'Bles|sed Syst|
|000000c0| 65 6d 20 46 6f 6c 64 65 | 72 20 69 73 20 2f 53 79 |em Folde|r is /Sy|
|000000d0| 73 74 65 6d 2f 4c 69 62 | 72 61 72 79 2f 43 6f 72 |stem/Lib|rary/Cor|
|000000e0| 65 53 65 72 76 69 63 65 | 73 27 3b 65 63 68 6f 20 |eService|s';echo |
|000000f0| 24 6f 75 74 70 75 74 22 | 0d 63 6f 70 79 20 28 41 |$output"|.copy (A|
|00000100| 53 43 49 49 20 6e 75 6d | 62 65 72 20 6f 66 20 72 |SCII num|ber of r|
|00000110| 65 73 75 6c 74 29 20 74 | 6f 20 43 68 6b 54 65 6e |esult) t|o ChkTen|
|00000120| 0d 2d 2d 20 59 6f 75 20 | 6e 65 65 64 20 74 6f 20 |.-- You |need to |
|00000130| 63 68 61 6e 67 65 20 77 | 68 65 72 65 20 79 6f 75 |change w|here you|
|00000140| 72 20 4f 53 20 39 20 73 | 79 73 74 65 6d 20 66 6f |r OS 9 s|ystem fo|
|00000150| 6c 64 65 72 20 69 73 2c | 20 61 73 20 79 6f 75 20 |lder is,| as you |
|00000160| 63 61 6e 20 73 65 65 2c | 20 6d 69 6e 65 20 69 73 |can see,| mine is|
|00000170| 20 6f 6e 20 74 68 65 20 | 76 6f 6c 75 6d 65 20 63 | on the |volume c|
|00000180| 61 6c 6c 65 64 20 4d 61 | 63 69 6e 74 6f 73 68 20 |alled Ma|cintosh |
|00000190| 48 44 0d 64 6f 20 73 68 | 65 6c 6c 20 73 63 72 69 |HD.do sh|ell scri|
|000001a0| 70 74 20 22 2f 75 73 72 | 2f 73 62 69 6e 2f 62 6c |pt "/usr|/sbin/bl|
|000001b0| 65 73 73 20 2d 69 6e 66 | 6f 20 2f 20 7c 20 67 72 |ess -inf|o / | gr|
|000001c0| 65 70 20 2d 63 20 27 42 | 6c 65 73 73 65 64 20 53 |ep -c 'B|lessed S|
|000001d0| 79 73 74 65 6d 20 46 6f | 6c 64 65 72 20 69 73 20 |ystem Fo|lder is |
|000001e0| 2f 56 6f 6c 75 6d 65 73 | 2f 4d 61 63 69 6e 74 6f |/Volumes|/Macinto|
|000001f0| 73 68 20 48 44 2f 53 79 | 73 74 65 6d 20 46 6f 6c |sh HD/Sy|stem Fol|
|00000200| 64 65 72 27 3b 65 63 68 | 6f 20 24 6f 75 74 70 75 |der';ech|o $outpu|
|00000210| 74 22 0d 63 6f 70 79 20 | 28 41 53 43 49 49 20 6e |t".copy |(ASCII n|
|00000220| 75 6d 62 65 72 20 6f 66 | 20 72 65 73 75 6c 74 29 |umber of| result)|
|00000230| 20 74 6f 20 43 68 6b 4e | 69 6e 65 0d 69 66 20 43 | to ChkN|ine.if C|
|00000240| 68 6b 54 65 6e 20 3d 20 | 34 39 20 74 68 65 6e 0d |hkTen = |49 then.|
|00000250| 09 73 65 74 20 53 79 73 | 46 6f 6c 64 20 74 6f 20 |.set Sys|Fold to |
|00000260| 22 4d 61 63 20 4f 53 20 | 58 22 0d 65 6c 73 65 0d |"Mac OS |X".else.|
|00000270| 09 69 66 20 43 68 6b 4e | 69 6e 65 20 3d 20 34 39 |.if ChkN|ine = 49|
|00000280| 20 74 68 65 6e 0d 09 09 | 73 65 74 20 53 79 73 46 | then...|set SysF|
|00000290| 6f 6c 64 20 74 6f 20 22 | 4d 61 63 20 4f 53 20 39 |old to "|Mac OS 9|
|000002a0| 22 0d 09 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |"..end i|f.end if|
|000002b0| 0d 0d 69 66 20 53 79 73 | 46 6f 6c 64 20 3d 20 22 |..if Sys|Fold = "|
|000002c0| 4d 61 63 20 4f 53 20 58 | 22 20 74 68 65 6e 0d 09 |Mac OS X|" then..|
|000002d0| 73 65 74 20 64 65 66 42 | 75 74 74 6f 6e 20 74 6f |set defB|utton to|
|000002e0| 20 22 4d 61 63 20 4f 53 | 20 39 22 0d 65 6c 73 65 | "Mac OS| 9".else|
|000002f0| 0d 09 73 65 74 20 64 65 | 66 42 75 74 74 6f 6e 20 |..set de|fButton |
|00000300| 74 6f 20 22 4d 61 63 20 | 4f 53 20 58 22 0d 65 6e |to "Mac |OS X".en|
|00000310| 64 20 69 66 0d 64 69 73 | 70 6c 61 79 20 64 69 61 |d if.dis|play dia|
|00000320| 6c 6f 67 20 22 43 68 61 | 6e 67 65 20 79 6f 75 72 |log "Cha|nge your|
|00000330| 20 73 74 61 72 74 75 70 | 20 64 69 73 6b 20 74 6f | startup| disk to|
|00000340| 3a 22 20 62 75 74 74 6f | 6e 73 20 7b 22 4d 61 63 |:" butto|ns {"Mac|
|00000350| 20 4f 53 20 58 22 2c 20 | 22 4d 61 63 20 4f 53 20 | OS X", |"Mac OS |
|00000360| 39 22 7d 20 64 65 66 61 | 75 6c 74 20 62 75 74 74 |9"} defa|ult butt|
|00000370| 6f 6e 20 64 65 66 42 75 | 74 74 6f 6e 20 77 69 74 |on defBu|tton wit|
|00000380| 68 20 69 63 6f 6e 20 6e | 6f 74 65 0d 73 65 74 20 |h icon n|ote.set |
|00000390| 74 68 65 20 75 73 65 72 | 5f 63 68 6f 69 63 65 20 |the user|_choice |
|000003a0| 74 6f 20 74 68 65 20 62 | 75 74 74 6f 6e 20 72 65 |to the b|utton re|
|000003b0| 74 75 72 6e 65 64 20 6f | 66 20 74 68 65 20 72 65 |turned o|f the re|
|000003c0| 73 75 6c 74 0d 69 66 20 | 74 68 65 20 75 73 65 72 |sult.if |the user|
|000003d0| 5f 63 68 6f 69 63 65 20 | 69 73 20 22 4d 61 63 20 |_choice |is "Mac |
|000003e0| 4f 53 20 58 22 20 74 68 | 65 6e 0d 09 2d 2d 20 63 |OS X" th|en..-- c|
|000003f0| 68 61 6e 67 65 20 79 6f | 75 72 20 61 64 6d 69 6e |hange yo|ur admin|
|00000400| 20 70 61 73 73 77 6f 72 | 64 20 68 65 72 65 20 77 | passwor|d here w|
|00000410| 65 72 65 20 74 68 65 20 | 78 78 78 78 78 20 69 73 |ere the |xxxxx is|
|00000420| 20 0d 09 64 6f 20 73 68 | 65 6c 6c 20 73 63 72 69 | ..do sh|ell scri|
|00000430| 70 74 20 22 2f 75 73 72 | 2f 73 62 69 6e 2f 62 6c |pt "/usr|/sbin/bl|
|00000440| 65 73 73 20 2d 66 6f 6c | 64 65 72 20 27 2f 53 79 |ess -fol|der '/Sy|
|00000450| 73 74 65 6d 2f 4c 69 62 | 72 61 72 79 2f 43 6f 72 |stem/Lib|rary/Cor|
|00000460| 65 53 65 72 76 69 63 65 | 73 27 20 2d 66 6f 6c 64 |eService|s' -fold|
|00000470| 65 72 39 20 27 2f 53 79 | 73 74 65 6d 20 46 6f 6c |er9 '/Sy|stem Fol|
|00000480| 64 65 72 27 20 2d 73 65 | 74 4f 46 22 20 70 61 73 |der' -se|tOF" pas|
|00000490| 73 77 6f 72 64 20 22 78 | 78 78 78 78 22 20 77 69 |sword "x|xxxx" wi|
|000004a0| 74 68 20 61 64 6d 69 6e | 69 73 74 72 61 74 6f 72 |th admin|istrator|
|000004b0| 20 70 72 69 76 69 6c 65 | 67 65 73 0d 65 6c 73 65 | privile|ges.else|
|000004c0| 20 69 66 20 74 68 65 20 | 75 73 65 72 5f 63 68 6f | if the |user_cho|
|000004d0| 69 63 65 20 69 73 20 22 | 4d 61 63 20 4f 53 20 39 |ice is "|Mac OS 9|
|000004e0| 22 20 74 68 65 6e 0d 09 | 2d 2d 20 79 6f 75 20 6d |" then..|-- you m|
|000004f0| 61 79 20 6e 65 65 64 20 | 74 6f 20 63 68 61 6e 67 |ay need |to chang|
|00000500| 65 20 77 68 65 72 65 20 | 79 6f 75 72 20 4f 53 20 |e where |your OS |
|00000510| 39 20 73 79 73 74 65 6d | 20 66 6f 6c 64 65 72 20 |9 system| folder |
|00000520| 69 73 0d 09 2d 2d 20 61 | 6c 73 6f 20 70 75 74 20 |is..-- a|lso put |
|00000530| 69 6e 20 79 6f 75 72 20 | 61 64 6d 69 6e 20 70 61 |in your |admin pa|
|00000540| 73 73 77 6f 72 64 20 68 | 65 72 65 20 0d 09 64 6f |ssword h|ere ..do|
|00000550| 20 73 68 65 6c 6c 20 73 | 63 72 69 70 74 20 22 2f | shell s|cript "/|
|00000560| 75 73 72 2f 73 62 69 6e | 2f 62 6c 65 73 73 20 2d |usr/sbin|/bless -|
|00000570| 66 6f 6c 64 65 72 39 20 | 27 2f 53 79 73 74 65 6d |folder9 |'/System|
|00000580| 20 46 6f 6c 64 65 72 27 | 20 2d 73 65 74 4f 46 22 | Folder'| -setOF"|
|00000590| 20 70 61 73 73 77 6f 72 | 64 20 22 78 78 78 78 78 | passwor|d "xxxxx|
|000005a0| 22 20 77 69 74 68 20 61 | 64 6d 69 6e 69 73 74 72 |" with a|dministr|
|000005b0| 61 74 6f 72 20 70 72 69 | 76 69 6c 65 67 65 73 0d |ator pri|vileges.|
|000005c0| 65 6e 64 20 69 66 0d 0d | 2d 2d 20 41 73 6b 73 20 |end if..|-- Asks |
|000005d0| 79 6f 75 20 77 68 65 74 | 68 65 72 20 79 6f 75 20 |you whet|her you |
|000005e0| 77 61 6e 74 20 74 6f 20 | 72 65 73 74 61 72 74 20 |want to |restart |
|000005f0| 79 6f 75 72 20 63 6f 6d | 70 75 74 65 72 0d 74 65 |your com|puter.te|
|00000600| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 22 |ll appli|cation "|
|00000610| 46 69 6e 64 65 72 22 0d | 09 61 63 74 69 76 61 74 |Finder".|.activat|
|00000620| 65 0d 09 64 69 73 70 6c | 61 79 20 64 69 61 6c 6f |e..displ|ay dialo|
|00000630| 67 20 22 44 6f 20 79 6f | 75 20 77 61 6e 74 20 74 |g "Do yo|u want t|
|00000640| 6f 20 52 65 73 74 61 72 | 74 20 79 6f 75 72 20 63 |o Restar|t your c|
|00000650| 6f 6d 70 75 74 65 72 20 | 6e 6f 77 3f 22 20 62 75 |omputer |now?" bu|
|00000660| 74 74 6f 6e 73 20 7b 22 | 43 61 6e 63 65 6c 22 2c |ttons {"|Cancel",|
|00000670| 20 22 52 65 73 74 61 72 | 74 22 7d 20 64 65 66 61 | "Restar|t"} defa|
|00000680| 75 6c 74 20 62 75 74 74 | 6f 6e 20 32 0d 09 73 65 |ult butt|on 2..se|
|00000690| 74 20 75 73 65 72 44 65 | 63 20 74 6f 20 62 75 74 |t userDe|c to but|
|000006a0| 74 6f 6e 20 72 65 74 75 | 72 6e 65 64 20 6f 66 20 |ton retu|rned of |
|000006b0| 72 65 73 75 6c 74 0d 09 | 69 66 20 75 73 65 72 44 |result..|if userD|
|000006c0| 65 63 20 3d 20 22 52 65 | 73 74 61 72 74 22 20 74 |ec = "Re|start" t|
|000006d0| 68 65 6e 0d 09 09 74 65 | 6c 6c 20 61 70 70 6c 69 |hen...te|ll appli|
|000006e0| 63 61 74 69 6f 6e 20 22 | 54 65 72 6d 69 6e 61 6c |cation "|Terminal|
|000006f0| 22 0d 09 09 09 61 63 74 | 69 76 61 74 65 0d 09 09 |"....act|ivate...|
|00000700| 09 64 6f 20 73 63 72 69 | 70 74 20 77 69 74 68 20 |.do scri|pt with |
|00000710| 63 6f 6d 6d 61 6e 64 20 | 22 73 75 64 6f 20 72 65 |command |"sudo re|
|00000720| 62 6f 6f 74 22 0d 09 09 | 65 6e 64 20 74 65 6c 6c |boot"...|end tell|
|00000730| 0d 09 65 6c 73 65 20 69 | 66 20 75 73 65 72 44 65 |..else i|f userDe|
|00000740| 63 20 3d 20 22 43 61 6e | 63 65 6c 22 20 74 68 65 |c = "Can|cel" the|
|00000750| 6e 0d 09 09 74 65 6c 6c | 20 61 70 70 6c 69 63 61 |n...tell| applica|
|00000760| 74 69 6f 6e 20 22 46 69 | 6e 64 65 72 22 0d 09 09 |tion "Fi|nder"...|
|00000770| 09 61 63 74 69 76 61 74 | 65 0d 09 09 65 6e 64 20 |.activat|e...end |
|00000780| 74 65 6c 6c 0d 09 65 6e | 64 20 69 66 0d 65 6e 64 |tell..en|d if.end|
|00000790| 20 74 65 6c 6c 0d 00 00 | 00 00 00 00 00 00 00 00 | tell...|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 de | 00 00 00 de 00 00 00 5a |........|.......Z|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 a8 54 68 69 73 | 20 73 63 72 69 70 74 20 |....This| script |
|00000910| 6d 6f 64 69 66 69 65 73 | 20 74 68 65 20 53 74 61 |modifies| the Sta|
|00000920| 72 74 75 70 20 44 69 73 | 6b 20 77 69 74 68 6f 75 |rtup Dis|k withou|
|00000930| 74 20 68 61 76 69 6e 67 | 20 74 6f 20 75 73 65 20 |t having| to use |
|00000940| 74 68 65 20 47 55 49 20 | 0d 2d 2d 20 49 74 20 69 |the GUI |.-- It i|
|00000950| 73 20 6d 75 63 68 20 66 | 61 73 74 65 72 20 74 68 |s much f|aster th|
|00000960| 61 6e 20 67 6f 69 6e 67 | 20 74 68 72 6f 75 67 68 |an going| through|
|00000970| 20 74 68 65 20 73 79 73 | 74 65 6d 20 70 72 65 66 | the sys|tem pref|
|00000980| 65 72 65 6e 63 65 73 0d | 2d 2d 20 4f 72 69 67 69 |erences.|-- Origi|
|00000990| 6e 61 6c 6c 79 20 63 72 | 65 61 74 65 64 20 62 79 |nally cr|eated by|
|000009a0| 20 4b 65 6e 20 45 64 77 | 61 72 64 73 00 00 00 16 | Ken Edw|ards....|
|000009b0| 00 01 00 00 00 00 00 0c | 00 0a 1c 23 00 00 00 0a |........|...#....|
|000009c0| 00 00 00 00 00 00 00 00 | 00 14 00 2d 00 04 03 1f |........|...-....|
|000009d0| 03 68 00 2d 00 04 03 1f | 03 68 00 00 00 00 00 00 |.h.-....|.h......|
|000009e0| 01 00 00 00 01 de 00 00 | 00 de 00 00 00 5a 02 9c |........|.....Z..|
|000009f0| 4e 54 00 40 00 00 00 1c | 00 5a 00 02 54 45 58 54 |NT.@....|.Z..TEXT|
|00000a00| 00 00 00 1a 73 74 79 6c | 00 00 00 26 57 50 6f 73 |....styl|...&WPos|
|00000a10| 00 00 00 32 04 68 ff ff | 00 00 00 00 02 9c 4e 60 |...2.h..|......N`|
|00000a20| 04 68 ff ff 00 00 00 ac | 02 9c 4e 68 00 80 ff ff |.h......|..Nh....|
|00000a30| 00 00 00 c6 02 9c 4e 6c | 00 00 00 00 00 00 00 00 |......Nl|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+